Download and Install the virtctl Command Line Interface

您所在的位置:网站首页 virt install 未找到命令 Download and Install the virtctl Command Line Interface

Download and Install the virtctl Command Line Interface

2024-07-10 18:38| 来源: 网络整理| 查看: 265

Download and Install the virtctl Command Line Interface¶ Download the virtctl client tool¶

Basic VirtualMachineInstance operations can be performed with the stock kubectl utility. However, the virtctl binary utility is required to use advanced features such as:

Serial and graphical console access

It also provides convenience commands for:

Starting and stopping VirtualMachineInstances

Live migrating VirtualMachineInstances and canceling live migrations

Uploading virtual machine disk images

There are two ways to get it:

the most recent version of the tool can be retrieved from the official release page

it can be installed as a kubectl plugin using krew

Example:

export VERSION=$(curl https://storage.googleapis.com/kubevirt-prow/release/kubevirt/kubevirt/stable.txt) wget https://github.com/kubevirt/kubevirt/releases/download/${VERSION}/virtctl-${VERSION}-linux-amd64 Install virtctl with krew¶

It is required to install krew plugin manager beforehand. If krew is installed, virtctl can be installed via krew:

$ kubectl krew install virt

Then virtctl can be used as a kubectl plugin. For a list of available commands run:

$ kubectl virt help

Every occurrence throughout this guide of

$ ./virtctl ...

should then be read as

$ kubectl virt ...


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3